package com.kxmall.admin.controller.vehicle.service;

import com.kxmall.common.core.domain.PageQuery;
import com.kxmall.common.core.page.TableDataInfo;
import com.kxmall.vehicle.domain.bo.KxVehicleBoxOutGoodsBo;
import com.kxmall.vehicle.domain.vo.KxVehicleBoxDownGoodsVo;
import com.kxmall.vehicle.domain.vo.KxVehicleVo;

import java.util.Collection;
import java.util.List;

/**
 * 商品出库Service接口
 */
public interface IKxVehicleBoxDownGoodsService {

    /**
     * 查询商品出库
     */
    KxVehicleBoxDownGoodsVo queryById(Long id);

    /**
     * 查询商品出库列表
     */
    TableDataInfo<KxVehicleBoxDownGoodsVo> queryPageList(KxVehicleBoxOutGoodsBo bo, PageQuery pageQuery);

    /**
     * 查询商品出库列表
     */
    List<KxVehicleBoxDownGoodsVo> queryList(KxVehicleBoxOutGoodsBo bo);

    /**
     * 新增商品出库
     */
    Boolean insertByBo(KxVehicleBoxOutGoodsBo bo);

    /**
     * 修改商品出库
     */
    Boolean updateByBo(KxVehicleBoxOutGoodsBo bo);

    /**
     * 校验并批量删除商品出库信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 出库
     * @param bo
     * @return
     */
    Boolean updateDownVehicleBox(KxVehicleBoxOutGoodsBo bo);

    /**
     * 获取所有餐车的名称
     * @param bo
     * @return
     */
    List<KxVehicleVo> vehicleAllName(KxVehicleBoxOutGoodsBo bo);
}
